package com.campusmarket.common.utils;

import java.util.Arrays;
import java.util.List;

/**
 * Created by Mankind on 2018/2/2.
 */
public class FormUtils {
    public static  Long[] getIdsArray(String ids) {
        List<String> idsList = Arrays.asList(ids.split(","));
        Long[] idsArry = new Long[idsList.size()];
        for (int i = 0; i < idsList.size(); i++) {
            idsArry[i] = Long.valueOf(idsList.get(i));
        }
        return idsArry;
    }
}
